<?php echo FlashMessage::getInstance()->display(); ?>

<h3 id="page-intro">Danh sách danh mục</h3>
<div class="content-box"><!-- Start Content Box -->

    <div class="content-box-header">
        <!-- Set My Category Breadcrumb here -->
        <h3><?php echo $breadcrumb; ?></h3>

        <ul class="content-box-tabs">

            <li><a href="#tab1" class="default-tab">Danh sách</a></li> <!-- href must be unique and match the id of target div -->
            <li><a href="#tab2">Tạo mới</a></li>
        </ul>

        <div class="clear"></div>

    </div> <!-- End .content-box-header -->

    <div class="content-box-content">

        <div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->

            <table>
                <thead>
                    <tr>

                        <th><input class="check-all" type="checkbox" /></th>
                        <th>Tên</th>
                        <th>Mô tả</th>
                        <th class="tc">Danh mục con</th>
                        <th class="tc">Trạng thái</th>
                        <th>&nbsp;</th>

                    </tr>

                </thead>

                <tfoot>
                    <!--
                    <tr>
                        <td colspan="6">
                            <div class="bulk-actions align-left">
                                <select name="dropdown">
                                    <option value="option1">Choose an action...</option>

                                    <option value="option2">Edit</option>
                                    <option value="option3">Delete</option>
                                </select>
                                <a class="button" href="#">Apply to selected</a>
                            </div>
                            <div class="clear"></div>
                        </td>
                    </tr>
                    -->
                </tfoot>

                <tbody>
                    <?php echo $list->render(); ?>
                </tbody>

            </table>


        </div> <!-- End #tab1 -->

        <div class="tab-content" id="tab2">

            <?php echo $form->render(); ?>

        </div> <!-- End #tab2 -->        

    </div> <!-- End .content-box-content -->

</div> <!-- End .content-box -->
<script type="text/javascript">
$(document).ready(function(){
    Sidebar.setActive(Sidebar.menu.article, 2);
});
</script>